package com.zfzs.post.modules.goods.service;

import com.zfzs.post.model.vo.QueryShopInfo;
import com.zfzs.post.modules.goods.domain.GoodOrderSn;
import com.zfzs.post.modules.goods.service.dto.GoodOrderSnQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
* @author ck
* @date 2019-10-18
*/
public interface GoodOrderSnService {

    /**
    * queryAll 分页
    * @param criteria
    * @param pageable
    * @return
    */
    Object queryAll(GoodOrderSnQueryCriteria criteria, Pageable pageable);

    /**
    * queryAll 不分页
    * @param criteria
    * @return
    */
    Object queryAll(GoodOrderSnQueryCriteria criteria);

    /**
     * findById
     * @param id
     * @return
     */
    GoodOrderSn findById(Integer id);

    /**
     * create
     * @param resources
     * @return
     */
    GoodOrderSn create(GoodOrderSn resources);

    /**
     * update
     * @param resources
     */
    void update(GoodOrderSn resources);

    /**
     * delete
     * @param id
     */
    void delete(Integer id);

    /**
     * 采购明细
     * @param orderNo
     * @param channelId
     * @return
     */
    List<QueryShopInfo> querySntByorderNoList(String orderNo, Long channelId);
}